import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';
import p002 from './p002';
interface Par extends Event {
	page_no: number;
}
export default async function a003(fd: IFeidaoAiBrowserComponent, e: Par) {
	// todo
	const res = await nodejs<{ dt: Array<{}>, c: number }>('notification-notice/zj-000006/s001',
		{ filter: { pn: e.page_no } });
	if (res.dt.length) {
		render(fd, res.dt, p001, 'p001', 'inner');
	} else {
		render(fd, res.dt, p002, 'p002', 'inner');
	}
}
